package com.chaodev.base.service;

import com.github.pagehelper.PageInfo;
import com.chaodev.base.model.*;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

public interface ILogService {
     void addErrorLog(HttpServletRequest request, String Error,String ParamInfo);

     boolean addMenuLog(Menu menu, UserInfo userInfo, HttpServletRequest request);

     void logAdd(String logData, String op, String resultCode, String resultData, UserInfo userInfo, HttpServletRequest request);

     PageInfo<LogUserLogin>  listLoginLog(DataPageVO dataPage);
     PageInfo<LogOperation> listUserLog(DataPageVO dataPage);
    List<Map<String,Object>> getMenuChartsData(Map<String,Object> map);
    List<Map<String,Object>> getUserChartsData(Map<String,Object> map);
    List<Map<String,Object>> getErrorChartsData(Map<String,Object> map);
    PageInfo<ErrorLog> listErrorLog(DataPageVO dataPage);
}
